package com.xxg.renrencommon.domain.filedenum.accountenum;

/**
 * 账户状态枚举
 *
 * @author xxg
 * @date 2020/11/5
 */
public enum AccountStatusEnum {
    /**
     * 正常
     */
    OK("正常", 0),
    /**
     * 禁用
     */
    FORBIDDEN("禁用", 1);
    /**
     * 枚举的名称
     */
    private final String name;
    /**
     * 枚举的代码
     */
    private final Integer value;

    AccountStatusEnum(String name, Integer value) {
        this.name = name;
        this.value = value;
    }

    public String getName() {
        return name;
    }

    public Integer getValue() {
        return value;
    }

    @Override
    public String toString() {
        return this.value + "_" + this.name;
    }
}
